import 'package:flutter/material.dart';
import 'pages/user_list_page.dart';
import 'pages/user_details_page.dart';
import 'pages/add_user_page.dart';
import 'pages/device_list_page.dart';
import 'utils/flutter_communication.dart';

void main() {
  runApp(UserManagementApp());
}

/**
 * 用户管理应用主类
 * 
 * 配置应用的路由和基本设置
 */
class UserManagementApp extends StatelessWidget {
  const UserManagementApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'User Management',
      debugShowCheckedModeBanner: false,
      initialRoute: '/',
      routes: {
        '/': (context) => UserListPage(),
        '/userDetails': (context) => UserDetailsPage(),
        '/addUser': (context) => AddUserPage(),
      },
    );
  }
}
